@charset "utf-8";
// header
#container {
    width: 100%;
    .top-header {
        height: 40px;
        font-size: 12px;
        color: #b0b0b0;
        background: #333;
        position: relative;
        z-index: 30;
        .wrapper {
            width: 1226px;
            margin: 0 auto;
            .nav {
                height: 40px;
                line-height: 40px;
                a {
                    font-size: 12px;
                    color: #b0b0b0;
                    line-height: 40px;
                    display: inline-block;
                    &:hover {
                        color: #fff;
                        outline: 0;
                    }
                }
                span {
                    color: #424242;
                }
                a:nth-last-of-type(2) {
                    position: relative;
                    &:hover {
                        span {
                            height: 148px;
                        }
                    }
                    &:hover::before {
                        display: block;
                    }
                    &::before {
                        content: "";
                        position: absolute;
                        bottom: 0;
                        left: 50%;
                        margin-left: -8px;
                        width: 0;
                        height: 0;
                        border-width: 0 8px 8px;
                        border-style: solid;
                        border-color: transparent transparent #fff;
                        display: none;
                    }
                    span {
                        width: 124px;
                        height: 0;
                        background: #fff;
                        font-size: 14px;
                        color: #333;
                        line-height: 1;
                        text-align: center;
                        position: absolute;
                        top: 40px;
                        left: 50%;
                        margin-left: -55px;
                        box-shadow: 0 1px 5px #aaa;
                        transition: height 0.3s;
                        overflow: hidden;
                        img {
                            width: 90px;
                            height: 90px;
                            display: block;
                            margin: 18px auto 12px;
                        }
                    }
                }
            }
            .nav-car {
                width: 120px;
                height: 40px;
                font-size: 12px;
                margin-left: 15px;
                transition: all 0.2s;
                position: relative;
                &:hover {
                    a {
                        color: #ff6700;
                        background-color: #ffffff;
                    }
                }
                &:hover {
                    .subnav-car {
                        height: 100px;
                    }
                }
                a {
                    display: block;
                    height: 40px;
                    line-height: 40px;
                    text-align: center;
                    color: #b0b0b0;
                    background: #424242;
                    position: relative;
                    z-index: 32;
                    em {
                        margin-right: 1px;
                        font-size: 16px;
                        line-height: 20px;
                        vertical-align: -4px;
                    }
                }
                .subnav-car {
                    width: 316px;
                    height: 0;
                    color: #424242;
                    background: #fff;
                    box-shadow: 0 2px 10px rgba(0, 0, 0, .15);
                    text-align: center;
                    position: absolute;
                    right: 0;
                    top: 40px;
                    z-index: 31;
                    overflow: hidden;
                    transition: height 0.3s;
                    .msg-empty {
                        text-align: center;
                        line-height: 100px;
                    }
                    .loader {
                        text-align: center;
                        line-height: 100px;
                    }
                }
            }
            .nav-info {
                height: 40px;
                a {
                    display: inline-block;
                    text-align: center;
                    color: #b0b0b0;
                    line-height: 40px;
                    &:hover {
                        color: #fff;
                        outline: 0;
                    }
                }
                a:last-child {
                    padding-right: 10px;
                }
                span {
                    color: #424242;
                }
                #username,
                #loginout {
                    display: inline-block;
                    color: #fff;
                    font-size: 16px;
                }
                #loginout>span {
                    // display: none;
                    font-size: 12px;
                    color: #b0b0b0;
                }
            }
        }
    }
    .bottom-header {
        height: 100px;
        position: relative;
        z-index: 20;
        .wrapper {
            width: 1226px;
            margin: 0 auto;
            position: relative;
            .logo {
                width: 62px;
                margin-top: 22px;
                a {
                    display: block;
                    width: 55px;
                    height: 55px;
                    overflow: hidden;
                    background-color: #ff6700;
                    position: relative;
                    text-align: left;
                    text-indent: -9999px;
                    &:hover::before {
                        transform: translateX(55px);
                    }
                    &:hover::after {
                        transform: translateX(55px);
                    }
                    &::before,
                    &::after {
                        content: "";
                        width: 55px;
                        height: 55px;
                        position: absolute;
                        left: 0;
                        top: 0;
                        z-index: 1;
                        transition: all 0.2s;
                    }
                    &::before {
                        background: url(../img/mi-logo.png) no-repeat 50% 50%;
                        opacity: 1;
                    }
                    &::after {
                        background: url(../img/mi-home.png) no-repeat 50% 50%;
                        margin-left: -55px;
                        opacity: 1;
                    }
                }
            }
            .big-nav {
                width: 850px;
                height: 100px;
                .nav-list {
                    width: 1100px;
                    height: 88px;
                    padding: 12px 0 0 30px;
                    font-size: 16px;
                    position: relative;
                    z-index: 10;
                    &>li:nth-of-type(1) {
                        position: relative;
                        width: 127px;
                        padding-right: 15px;
                        &>a {
                            display: block;
                            padding: 26px 0 38px;
                            text-align: right;
                            color: #333;
                            visibility: hidden;
                        }
                        &>div {
                            width: 234px;
                            height: 460px;
                            font-size: 14px;
                            position: absolute;
                            top: 88px;
                            left: -92px;
                            z-index: 21;
                            &>ul {
                                height: 420px;
                                color: #fff;
                                background: rgba(105, 101, 101, .6);
                                padding: 20px 0;
                                box-sizing: content-box;
                                &>li>a {
                                    color: #fff;
                                    position: relative;
                                    display: block;
                                    padding-left: 30px;
                                    height: 42px;
                                    line-height: 42px;
                                    &:hover {
                                        background: #ff6700;
                                    }
                                    &>em {
                                        font-size: 25px;
                                        line-height: 16px;
                                        color: #e0e0e0;
                                        position: absolute;
                                        top: 12px;
                                        right: 18px;
                                    }
                                }
                                &>li:hover .list-subnav {
                                    display: block;
                                }
                                &>li>.list-subnav {
                                    width: 993px;
                                    height: 458px;
                                    border: 1px solid #e0e0e0;
                                    border-left: 0;
                                    background: #fff;
                                    box-shadow: 0 8px 16px rgba(0, 0, 0, .18);
                                    display: none;
                                    position: absolute;
                                    left: 234px;
                                    top: 0;
                                    z-index: 24;
                                    &>ul {
                                        width: 248px;
                                        height: 458px;
                                        padding: 2px 0;
                                        float: left;
                                        &>li {
                                            position: relative;
                                            float: left;
                                            width: 265px;
                                            height: 76px;
                                            &>a {
                                                display: block;
                                                padding: 18px 20px;
                                                line-height: 40px;
                                                color: #333;
                                                transition: color 0.2s;
                                                &:hover span {
                                                    color: #ff6700;
                                                }
                                                img {
                                                    width: 40px;
                                                    height: 40px;
                                                    float: left;
                                                    margin-right: 12px;
                                                    vertical-align: middle;
                                                }
                                                span {
                                                    float: left;
                                                    width: 172px;
                                                    line-height: 40px;
                                                    white-space: nowrap;
                                                    text-overflow: ellipsis;
                                                    overflow: hidden;
                                                }
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                    &>li {
                        float: left;
                        &>a {
                            display: block;
                            padding: 26px 10px 38px;
                            color: #333;
                            transition: color 0.2s;
                            span {
                                font-weight: 400;
                            }
                            &:hover {
                                color: #ff6700;
                            }
                        }
                        &:hover .big-subnav {
                            height: 230px;
                            border-top: 1px solid #e0e0e0;
                        }
                        &>.big-subnav {
                            width: 1365px;
                            height: 0;
                            border-top: 0;
                            background: #fff;
                            overflow: hidden;
                            position: absolute;
                            top: 100px;
                            left: -133px;
                            z-index: 24;
                            box-shadow: 0 3px 4px rgba(0, 0, 0, .18);
                            transition: height 0.3s;
                            .container {
                                position: relative;
                                width: 1226px;
                                margin: 0 auto;
                                ul {
                                    font-size: 12px;
                                    li {
                                        position: relative;
                                        float: left;
                                        width: 180px;
                                        padding: 35px 12px 0;
                                        text-align: center;
                                        &:not(:nth-of-type(1))::before {
                                            content: "";
                                            width: 1px;
                                            height: 100px;
                                            background-color: #e0e0e0;
                                            position: absolute;
                                            left: 0;
                                            top: 35px;
                                            z-index: 1;
                                        }
                                        a {
                                            color: #757575;
                                            .img-box {
                                                width: 160px;
                                                height: 110px;
                                                margin: 0 auto 16px;
                                                text-align: center;
                                                img {
                                                    width: 160px;
                                                    height: 110px;
                                                }
                                            }
                                            .title {
                                                color: #333;
                                                line-height: 20px;
                                            }
                                            p {
                                                line-height: 20px;
                                                color: #ff6700;
                                            }
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            }
            .search {
                width: 296px;
                margin-top: 25px;
                form {
                    position: relative;
                    width: 296px;
                    height: 50px;
                    z-index: 20;
                    label {
                        display: none;
                    }
                    &>span {
                        display: inline-block;
                        font-size: 20px;
                        position: absolute;
                        top: 50%;
                        margin-top: -12px;
                        right: 15px;
                        z-index: 30;
                        cursor: pointer;
                    }
                    #search,
                    #search-btn {
                        position: absolute;
                        top: 0;
                        outline: 0;
                        transition: all .2s;
                        box-sizing: content-box;
                    }
                    #search {
                        right: 51px;
                        z-index: 1;
                        width: 223px;
                        height: 48px;
                        padding: 0 10px;
                        font-size: 14px;
                        line-height: 48px;
                    }
                    #search-btn {
                        right: 0;
                        z-index: 2;
                        cursor: pointer;
                        width: 52px;
                        height: 48px;
                        font-size: 24px;
                        line-height: 24px;
                        background: #fff;
                        color: #616161;
                        &:hover {
                            background: #ff6700;
                        }
                        &:hover+span {
                            color: #fff;
                        }
                    }
                    .search-hot-words {
                        opacity: 1;
                        position: absolute;
                        top: 14px;
                        right: 62px;
                        z-index: 2;
                        text-align: right;
                        transition: opacity .2s;
                        a {
                            display: inline-block;
                            margin-left: 5px;
                            padding: 0 5px;
                            font-size: 12px;
                            background: #eee;
                            color: #757575;
                            transition: all .2s;
                            &:hover {
                                background: #ff6700;
                                color: #fff;
                            }
                        }
                    }
                    .keyword-list {
                        position: absolute;
                        left: 0;
                        top: 50px;
                        z-index: 20;
                        width: 243px;
                        border: 1px solid #ff6700;
                        border-top: 0;
                        background: #fff;
                        & li:hover {
                            background: #fafafa;
                        }
                        & a {
                            position: relative;
                            display: block;
                            padding: 6px 15px;
                            font-size: 12px;
                            color: #424242;
                        }
                    }
                }
            }
        }
    }
}

.show {
    display: block;
}

.hide {
    display: none;
}

.border-gray {
    border: 1px solid #e0e0e0;
}

.border-orange {
    border: 1px solid #ff6700;
}

.border-black {
    border: 1px solid #b0b0b0;
}